package com.autumn.security.auth;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * 授权抽象
 * 
 * @author 杨昌国 2018-12-06 11:29:52
 */
public abstract class AbstractAuthenticationToken implements AuthenticationToken, AutumnAuthenticationToken {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3854223437906552191L;

	private String identityType;

	/**
	 * 
	 */
	public AbstractAuthenticationToken() {

	}

	/**
	 * 
	 * @param identityType
	 */
	public AbstractAuthenticationToken(String identityType) {
		this.setIdentityType(identityType);
	}

	@Override
	public String getIdentityType() {
		return this.identityType;
	}

	/**
	 * 设置身份类型
	 * 
	 * @param identityType 身份类型
	 */
	public void setIdentityType(String identityType) {
		this.identityType = identityType;
	}

}
